﻿using DapperExtensions;
using Logistics.Model;
using Logistics.Model.Response;
using Logistics_Dao;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Logistics.Service
{
   
    public class CompanyNoticeService
    {
        private CompanyNoticeDao dao = new CompanyNoticeDao();

        public PageData<wuliu_company_notice> GetPageList(IPredicate predicate, IList<ISort> sorts, int pageIndex, int pageSize)
        {
            return dao.GetPageList(predicate, sorts, pageIndex, pageSize);
        }

        public wuliu_company_notice Get(int id)
        {
            return dao.Get(id);
        }


        public bool DeleteNotice(wuliu_company_notice model)
        {
            return dao.DeleteNotice(model);
        }


        public int Add(wuliu_company_notice company_notice)
        {
            return dao.Add(company_notice);
        }

        public int Add(wuliu_wlcompany_notice company_notice)
        {
            return dao.Add(company_notice);
        }
    }
}
